package com.gkusbsdk;

public class GKUSBError {
	
	public static final int ERR_USB_OPEN = -20001; // USB设备打开失败
	public static final int ERR_VIDIOC_QUERYCAP = -20002; //VIDIOC_QUERYCAP指令发送失败
	
	public static final int ERR_NORIGHT_V4L2_CAP_VIDEO_CAPTURE = -20003;  // 没有V4L2_CAP_VIDEO_CAPTURE权限
	public static final int ERR_NORIGHT_V4L2_CAP_STREAMING = -20004;  // 没有V4L2_CAP_STREAMING权限
	
	public static final int ERR_MAP_FAILED = -20005; // 地址映射失败
	public static final int ERR_VIDIOC_QBUF = -20006; // VIDIOC_QBUF指令发送失败
	
	public static final int ERR_VIDIOC_REQBUFS = -20008; // VIDIOC_REQBUFS指令发送失败
	public static final int ERR_FD_CLOSE = -20009; // USB已关闭
	
	public static final int ERR_VIDIOC_STREAMON = -20010; // VIDIOC_STREAMON指令发送失败
	public static final int ERR_VIDIOC_STREAMOFF = -20011; // ERR_VIDIOC_STREAMOFF指令发送失败
	
	public static final int ERR_SELECT = -20012; // 获取数据流超时
	
	public static final int ERR_VIDIOC_DQBUF = -20013; //VIDIOC_DQBUF指令发送失败
	
}
